package com.zhaozhaonews.search.service;


import com.zhaozhaonews.model.common.dto.ResponseResult;
import com.zhaozhaonews.model.serach.dto.HistorySearchDto;

/**
 * @author WanJl
 * @version 1.0
 * @title ApUserSearchService
 * @description 用户搜索Service
 * @create 2025/2/22
 */
public interface ApUserSearchService {
    /**
     * 保存用户搜素历史记录
     * @param keyword
     * @param userId
     */
    void save(String keyword,Integer userId);

    /**
     * 查询搜索历史
     * @return
     */
    ResponseResult findUserSearch();

    ResponseResult delUserSearch(HistorySearchDto dto);
}
